Skip to content

[LIVY-643][Server] Support for a Livy Server running on Windows Operating System#208

Open
davidOSUL wants to merge 8 commits into
apache:masterfrom
davidOSUL:master
Open

[LIVY-643][Server] Support for a Livy Server running on Windows Operating System#208
davidOSUL wants to merge 8 commits into
apache:masterfrom
davidOSUL:master

Conversation

@davidOSUL

@davidOSUL davidOSUL commented Aug 22, 2019

Copy link
Copy Markdown

What changes were proposed in this pull request?

The ability to start up a Livy server on a Windows Operating System.
(https://issues.apache.org/jira/browse/LIVY-643)

This PR also partially resolves some of the test issues when building in a Windows environment as described in https://issues.apache.org/jira/browse/LIVY-611. It does not resolve all of the issues with running tests on a windows environment. For example integration tests will fail because of line 299 of MiniCluster.scala (sys.process.Process(s"pkill -f $simpleName")). I believe that with the changes in this PR, should be able to resolve LIVY-611 with a future PR.

How was this patch tested?

Unit tests for new class, and I was able to start up a livy server (with java -cp "./jars/*;./conf;" org.apache.livy.server.LivyServer) on a Docker windows container and submit spark requests to the livy server successfully.

@davidOSUL davidOSUL closed this Aug 24, 2019
@davidOSUL davidOSUL reopened this Aug 24, 2019
@davidOSUL davidOSUL closed this Aug 24, 2019
@davidOSUL davidOSUL reopened this Aug 24, 2019
@codecov-io

codecov-io commented Aug 24, 2019

Copy link
Copy Markdown

Codecov Report

Merging #208 into master will increase coverage by 0.21%.
The diff coverage is 65.51%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #208      +/-   ##
============================================
+ Coverage     68.52%   68.74%   +0.21%     
- Complexity      913      923      +10     
============================================
  Files           100      101       +1     
  Lines          5696     5720      +24     
  Branches        862      864       +2     
============================================
+ Hits           3903     3932      +29     
+ Misses         1233     1225       -8     
- Partials        560      563       +3
Impacted Files Coverage Δ Complexity Δ
...main/java/org/apache/livy/rsc/ContextLauncher.java 66.01% <100%> (ø) 13 <0> (ø) ⬇️
...rver/src/main/scala/org/apache/livy/LivyConf.scala 95.97% <100%> (+0.1%) 21 <1> (ø) ⬇️
...ain/java/org/apache/livy/rsc/driver/RSCDriver.java 79.14% <100%> (+1.18%) 42 <0> (+1) ⬆️
...pache/livy/client/common/OperatingSystemUtils.java 50% <50%> (ø) 8 <8> (?)
...scala/org/apache/livy/repl/SparkRInterpreter.scala 60.69% <0%> (+0.57%) 14% <0%> (ø) ⬇️
...cala/org/apache/livy/repl/ProcessInterpreter.scala 59.52% <0%> (+2.38%) 6% <0%> (ø) ⬇️
.../scala/org/apache/livy/sessions/SessionState.scala 61.11% <0%> (+2.77%) 2% <0%> (ø) ⬇️
...ain/scala/org/apache/livy/utils/SparkYarnApp.scala 79.57% <0%> (+6.33%) 33% <0%> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9a4d0f1...b3f07dd. Read the comment docs.

@jerryshao

Copy link
Copy Markdown
Contributor

@davidOSUL sorry for late response, can you please tell what are the left issues for Livy running on Windows?

This PR also partially resolves some of the test issues when building in a Windows environment as described in https://issues.apache.org/jira/browse/LIVY-611.

@davidOSUL

Copy link
Copy Markdown
Author

@jerryshao And sorry for my late reply! I believe this PR should resolve issues with running the Livy server on Windows (at least with my tests). However it does not resolve developing on windows. LIVY-611 refers specifically to integration/unit tests. For example in the MiniCluster.scala integration test, some calls use unix based commands. However at the very least this PR should allow users to run a Livy server on a Windows machine, and with the changes it brings, it shouldn't be too hard to then resolve LIVY-611.

@github-actions

github-actions Bot commented Jun 2, 2026

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has had no activity for at least 3 months. If you are still working on this change or plan to move it forward, please leave a comment or push a new commit so we know to keep it open. Otherwise, this PR will be closed automatically in about one month. Thank you for your contribution to Apache Livy!

@github-actions github-actions Bot added the stale label Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants